/**
 * 
 */
package com.gkwave.action.service;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gkwave.module.bean.FoodMenuBean;
import com.gkwave.module.dao.FoodMenuDAO;

/**
 * @author Administrator
 *
 */
public class FoodMenuLocationListService extends BaseService{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4137365932330248669L;

	/**
	 * 
	 */
	public FoodMenuLocationListService() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void procesRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		out = response.getWriter();
		try{
			FoodMenuDAO dao = new FoodMenuDAO();
			FoodMenuBean bean = dao.getLocationList();
			xmlResponse = bean.marsel(bean, "Locations ", "location");
			bean = null;
		}catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		System.out.println(xmlResponse);
		out.println(xmlResponse);
	}

}
